package behavior.iterator;

import behavior.iterator.impl.ArrayList;

public class IteratorTest {

	public static void main(String[] args) {
		Collection list = new ArrayList();
		list.add("A");
		list.add("B");
		list.add("C");
		list.add("D");
		list.remove(1);
		Iterator it = list.iterator();
		while (it.hasNext()) {
			System.out.println(it.next());
		}
	}

}
